package com.example.base.url

import com.example.base.url.entity.CodeEntity
import com.example.base.url.entity.LoginEntity
import com.example.base.url.entity.Res
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {
    @POST("/api/front/login")
    suspend fun Login(@Body body: RequestBody):Res<LoginEntity>

    @POST("/api/front/register/reset")
    suspend fun upDataLogin(@Body body: RequestBody):Res<Boolean>

    @POST("/api/front/sendCode")
    suspend fun codeLogin(@Query("phone")phone:String):Res<CodeEntity>
}